<!--  -->
<template>
  <div>
    <div class="love-item flex-row">
      <div class="item-left">
        <div class="avatar">
          <img src="2301.jpg" alt="" />
        </div>
      </div>
      <div class="item-middle">
        <div class="line-1">
          <div class="username">小黑子</div>
          <span class="desc-field">赞了我的评论</span>
        </div>
        <div class="line-3">
          <span class="time">2023年8月7日 19:45</span>
          <span class="btn-box">
            <button class="action-btn">
              <i class="el-icon-delete"></i>删除该通知
            </button>
          </span>
        </div>
      </div>
      <div class="item-right">哎呦你干嘛</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  created() {
    console.log('create love')
  },
  destroyed() {
    console.log('destroy love')
  },
}
</script>

<style lang="less" scoped>
.love-item {
  padding: 10px 0;
  border-bottom: var(--bg-secondary-color) solid 1px;
}
.item-left {
  margin-right: 15px;
  .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background-color: aqua;
    img {
      width: 100%;
    }
  }
}
.item-middle {
  flex-grow: 1;
}
.line-1 {
  font-size: 14px;
  margin-bottom: 10px;
  .username {
    display: inline-block;
    font-weight: bolder;
    margin-right: 8px;
  }
}

.line-3 {
  display: flex;
  flex-wrap: wrap;
  .time {
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    margin-right: 15px;
    margin-bottom: 10px;
  }
  .btn-box {
    margin-bottom: 10px;
  }
  .action-btn {
    height: 18px;
    line-height: 18px;
    cursor: pointer;
    margin-right: 14px;
    i {
      margin-right: 2px;
    }
  }
  button {
    outline: 0;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: transparent;
    transition: var(--tran-01);
    color: var(--text-normal-color);
  }
}
</style>
